package com.hh.demo;

import com.hh.demo.mapper.ClerkMapper;
import com.hh.demo.mapper.RentMapper;
import com.hh.demo.mapper.ToyMapper;
import com.hh.demo.mapper.UserMapper;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

@SpringBootTest
public class JunitDemo {
    @Resource
    private ClerkMapper clerkMapper;
    @Resource
    private RentMapper rentMapper;
    @Resource
    private ToyMapper toyMapper;
    @Resource
    private UserMapper userMapper;
    /**
     * 营业员表的操作
     */
    @Test
    void demoInsetClerk(){
        clerkMapper.insetClerk("C03","hh");
    }
    @Test
    void demoSelectClerk(){
        clerkMapper.selectClerk();
    }
    /**
     * 出租表的操作
     */
    @Test
    void demoQueryRent(){
        rentMapper.queryRent();
    }
    @Test
    void demoQueryCount(){
        rentMapper.queryCount();
    }
}
